package org.xx.armory.swing.builders;

import org.xx.armory.objectparser.LineInfo;

public class CheckBoxModel
        extends AbstractComponentModel
        implements ComponentModel {
    private final String name;
    private final String text;

    /**
     * 构造复选框模型。
     *
     * @param lineInfo
     *         源文件中的位置信息。
     */
    protected CheckBoxModel(
            LineInfo lineInfo,
            String name,
            boolean visible,
            String text
    ) {
        super(lineInfo, name, visible);
        this.name = name;
        this.text = text;
    }

    public final String getText() {
        return this.text;
    }
}
